package com.oepm.biz.impl;

import com.oepm.biz.AcademyBiz;
import com.oepm.dao.entity.AcademyPo;
import com.oepm.dao.entity.AcademysPo;
import com.oepm.dao.entity.MajorsPo;
import com.oepm.dao.mapper.AcademyMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AcademyBIzImpl implements AcademyBiz {
    @Resource
    AcademyMapper academyMapper;

    @Override
    public List<AcademyPo> selectAll() {
        return academyMapper.selectAll();
    }

    @Override
    public List<AcademysPo> selectAcademy() {
        return academyMapper.selectAcademy();
    }

    @Override
    public List<MajorsPo> selectMajor(String academy) {
        return academyMapper.selectMajor(academy);
    }


    @Override
    public int updateMajor(AcademyPo academyPo) {
        return academyMapper.updateMajor(academyPo);
    }

    @Override
    public int insertAcademy(AcademyPo academyPo) {
        return academyMapper.insertAcademy(academyPo);
    }

    @Override
    public int deleteAcademy(String id) {
        return academyMapper.deleteAcademy(id);
    }
}
